{layout name="./base/base_back"}
		<title>提现</title>
		<link rel="stylesheet" type="text/css" href="/front/css/mytravelcoin.css"/>
		<script src="/front/js/jquery.js"></script>
		<script src="/front/js/index.js"></script>
		<script src="/front/js/jquery.cxselect.js"></script>
		<!--我的现金开始-->
		<div id="mytravel-coin-box">
			<div id="mytravel-coin">
				{include file="./navleft"}
				<div class="mytravel-coin-right">
					<div class="mytravel-coin-tit">提现</div>
				<!---->
				{if !empty($bank_num_info)}
					<form action="/cash/cash" method="post">
						<div class="my-publish-wish-cont">
							<table width="100%" rules="rows">
								<tr>
									<th>全部</th>
									<th>银行卡号</th>
									<th>开户银行</th>
								</tr>
								{foreach $bank_num_info as $v => $k}
								<tr align="center" id="s">
									<td><input type="radio" name="bank-data" value="{$k}"/>
									<input type="hidden" id="v" name="bank-data" value="{$v}"/></td>
									<td>{$v}</td>
									<td>{$k}</td>
								</tr>
								{/foreach}
							</table>
						</div>
						<div class="mytravel-coin-add">
							<div class="form-group-input">
								<label for="" class="form-label">提现账户</label>
								<input type="text" placeholder="本帐号实名认证姓名" value="{$real_name}" disabled="">
							</div>
							<div class="form-group-input" id="addressD">
								<label for="" class="form-label">开户银行</label>
								<input type="text" id="open_bank" name="open_bank" placeholder="请准确填写开户行">
								<span style="color: #999;">例，河北省石家庄市中国农业银行东方支行</span>
							</div>
							<div class="form-group-input" id="write_bank">
								<label for="" class="form-label">银行卡号</label>
								<input type="text" id="bank_num" name="bank_num" placeholder="请输入您本人的银行卡号">
							</div>
							<div class="form-group-input" id="write_bank">
								<label for="" class="form-label">提现金额</label>
								<input type="text" id="amount" name="amount" placeholder="请输入您的金额">
								<span style="color:#999;">可提现余额：{$blance}元</span>
							</div>
							<div class="form-group-input form-button">
								<button type="submit" class="btn btn-primary"   id="recharge">申请提现</button>
							</div>
					</div>
					</form>
				{else /}
				<!---->
					<div class="mytravel-coin-add">
						<form action="/cash/cash" method="post">
							<div class="form-group-input">
								<label for="" class="form-label">提现账户</label>
								<input type="text" placeholder="本帐号实名认证姓名" value="{$real_name}" disabled="">
							</div>
							<div class="form-group-input" id="addressD">
								<label for="" class="form-label">开户银行</label>
								<input type="text" id="open_bank" name="open_bank" placeholder="请准确填写开户行">
								<span style="color: #999;">例，河北省石家庄市中国农业银行东方支行</span>
							</div>
							<div class="form-group-input" id="write_bank">
								<label for="" class="form-label">银行卡号</label>
								<input type="text" id="bank_num" name="bank_num" placeholder="请输入您本人的银行卡号">
							</div>
							<div class="form-group-input" id="write_bank">
								<label for="" class="form-label">提现金额</label>
								<input type="text" id="amount" name="amount" placeholder="请输入您的金额">
								<span style="color:#999;">可提现余额：{$blance}元</span>
							</div>
							<div class="form-group-input form-button">
								<button type="submit" class="btn btn-primary"   id="recharge">提交</button>
							</div>
						</form>
					</div>
				{/if}
					<dl>
						<dt>温馨提示</dt>
						<dd>（1）为了保障您的账户安全，您需要通过实名认证才能进行提现。在提现时您输入的银行卡的开户人姓名必须与您实名认证时的姓名一致。每日提现最高限额为5000元，1小时内仅限提现一次。</dd>
						<dd>（2）为了账号资金安全，只能使用您本人的银行卡。如需帮助，请拨打双辉客服电话031188989858</dd>
						<dd>（3）您的提现申请提交成功后，正常提现金额在7个工作日内到账。</dd>
						<dd>（4）目前提现支持国内多家主流银行，包括：中国工商银行、中国农业银行、中国建设银行、招商银行、平安银行。</dd>
					</dl>
				</div>
			</div>
		</div>
		<!--我的现金结束-->

		<script type="text/javascript">
			$('.bankNum-del').each(function(){
				$(this).click(function(){
					_this = $(this);
					$.ajax({
						type:"post",
						url:"/cash/del",
						data:{'bank_num':$(this).attr('num')},
						dataType:"json",
						success:function(data){
							if(data.num===1){
								_this.parent('tr').remove();
							}
						}
					});
				})
			})
			$('input[name="bank-data"]').each(function(){
				$(this).click(function(){
					$('input[name="bank-data"]').prop("checked",false);
					$(this).prop('checked',true);
				})
			})

			//世界城市地区联动 开始
			$('#addressD').cxSelect({
			    selects: ['addressCountry','addressProvince', 'addressCity'],
			    jsonName: 'area_name',
			    jsonValue: 'area_code'  }, function(api) {
			    cxSelectApi = api;
			});
		</script>

		<script type="text/javascript">
			$(document).ready(function(){
				$(':radio').attr('checked',false);
				$('table').find('tr').each(function(){
					$(this).click(function(){
						$('#open_bank').val($(this).find('input').eq(0).val());
						$('#bank_num').val($(this).find('input').eq(1).val());
						$(':radio').removeAttr('checked');
						$(this).find(':radio').eq(0).prop('checked',true);
						//alert($(this).find('input').eq(0).val() + $(this).find('input').eq(1).val());
					});  
				});
			})
		</script>


		